package cn.iocoder.yudao.module.dify.service.translationWorkflow;

import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import io.github.imfangs.dify.client.exception.DifyApiException;
import org.springframework.web.multipart.MultipartFile;
import reactor.core.publisher.Flux;

import java.io.IOException;

public interface DifyTranslationWorkflowService {
    Flux<CommonResult<String>> translateWorkflow(MultipartFile file, Long userId) throws DifyApiException, IOException, InterruptedException;

    String translateWorkflowGradually(String context, Long userId) throws DifyApiException, IOException, InterruptedException;

}
